var autoIncrement = require('mongoose-auto-increment')
var mongoose = require('mongoose');
var schema = mongoose.Schema;

var Config = function(){
    var wechatChema = new schema({
        AppID: {type : String},
        AppSecret: {type : String},
        EncodingAESKey: {type : String},
        URL: {type : String},
        wechat: {type : String},
        token: {type : String},
        accessToken : {type : String}
    });
    var ConfigSchema = new schema({
        name : { type: String, Default: "滚滚趣CMS管理平台" },
        url  : { type: String },
        copy : { type: String },
        wechat : wechatChema

    });

    return mongoose.model('Config',ConfigSchema, 'Config');
};

module.exports = Config;
